.class public Lcom/opongo/blogapp/activities/WebViewActivity;
.super Landroid/app/Activity;
.source "WebViewActivity.java"


# static fields
.field public static final DEBUG:Z

.field private static final TAG:Ljava/lang/String;


# instance fields
.field private postContentView:Landroid/webkit/WebView;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 15
    sget-boolean v0, Lcom/opongo/blogapp/AbaSettings;->DEBUG:Z

    sput-boolean v0, Lcom/opongo/blogapp/activities/WebViewActivity;->DEBUG:Z

    .line 16
    const-class v0, Lcom/opongo/blogapp/activities/WebViewActivity;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/opongo/blogapp/activities/WebViewActivity;->TAG:Ljava/lang/String;

    .line 13
    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 13
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 3
    .parameter "savedInstanceState"

    .prologue
    .line 22
    sget-boolean v1, Lcom/opongo/blogapp/activities/WebViewActivity;->DEBUG:Z

    if-eqz v1, :cond_0

    .line 23
    sget-object v1, Lcom/opongo/blogapp/activities/WebViewActivity;->TAG:Ljava/lang/String;

    const-string v2, "*** create ***"

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 25
    :cond_0
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 27
    const v1, 0x7f030011

    invoke-virtual {p0, v1}, Lcom/opongo/blogapp/activities/WebViewActivity;->setContentView(I)V

    .line 29
    new-instance v0, Lcom/opongo/blogapp/activities/WebViewActivity$1;

    invoke-direct {v0, p0}, Lcom/opongo/blogapp/activities/WebViewActivity$1;-><init>(Lcom/opongo/blogapp/activities/WebViewActivity;)V

    .line 36
    .local v0, mWebClient:Landroid/webkit/WebViewClient;
    const v1, 0x7f08002d

    invoke-virtual {p0, v1}, Lcom/opongo/blogapp/activities/WebViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/webkit/WebView;

    iput-object v1, p0, Lcom/opongo/blogapp/activities/WebViewActivity;->postContentView:Landroid/webkit/WebView;

    .line 39
    iget-object v1, p0, Lcom/opongo/blogapp/activities/WebViewActivity;->postContentView:Landroid/webkit/WebView;

    invoke-virtual {v1, v0}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 41
    iget-object v1, p0, Lcom/opongo/blogapp/activities/WebViewActivity;->postContentView:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v1

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/webkit/WebSettings;->setBuiltInZoomControls(Z)V

    .line 43
    iget-object v1, p0, Lcom/opongo/blogapp/activities/WebViewActivity;->postContentView:Landroid/webkit/WebView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/webkit/WebView;->setScrollBarStyle(I)V

    .line 45
    return-void
.end method

.method public onResume()V
    .locals 7

    .prologue
    .line 49
    sget-boolean v0, Lcom/opongo/blogapp/activities/WebViewActivity;->DEBUG:Z

    if-eqz v0, :cond_0

    .line 50
    sget-object v0, Lcom/opongo/blogapp/activities/WebViewActivity;->TAG:Ljava/lang/String;

    const-string v1, "onResume"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 53
    :cond_0
    invoke-virtual {p0}, Lcom/opongo/blogapp/activities/WebViewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v6

    .line 55
    .local v6, extras:Landroid/os/Bundle;
    const-string v0, "message"

    invoke-virtual {v6, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 57
    .local v2, message:Ljava/lang/String;
    iget-object v0, p0, Lcom/opongo/blogapp/activities/WebViewActivity;->postContentView:Landroid/webkit/WebView;

    if-eqz v0, :cond_1

    .line 58
    iget-object v0, p0, Lcom/opongo/blogapp/activities/WebViewActivity;->postContentView:Landroid/webkit/WebView;

    const-string v1, "fake://foo.bar"

    .line 59
    const-string v3, "text/html"

    const-string v4, "UTF-8"

    const/4 v5, 0x0

    .line 58
    invoke-virtual/range {v0 .. v5}, Landroid/webkit/WebView;->loadDataWithBaseURL(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 62
    :cond_1
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    .line 63
    return-void
.end method
